function upload(){
    var name = $("#name").val();
    var category = $("#category").val();
    var price = $("#price").val();
    $.ajax({
        url: '/home',
        method: 'POST',
        datatype: 'json',
        data:{
            "name":name,
            "category":category,
            "price":price
        },
        success: function(data){
           if(data.message == "false"){
           }else{
               confirm("添加成功");
               window.location.href='/home'
           }
        }
    })
}